package com.uzai.console.vo.tb.tborder;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @author liuqi
 * @date 2021年08月20日 19:23
 */
@ApiModel("返回淘宝联盟账号列表")
public class TbOrderTokenVo {
    @ApiModelProperty("ID")
    private Long id;
    @ApiModelProperty("淘宝账号id")
    private Long userId;
    @ApiModelProperty("账号名称")
    private String userName;
    @ApiModelProperty("授权到期日期")
    private Integer exptime;
    @ApiModelProperty("是否到期(0-未到期；1-已到期)")
    private int exptimeFlag;
    @ApiModelProperty("转链类型（0-返利；1-导购）")
    private Integer turnlink;
    @ApiModelProperty("备注")
    private String remark;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getExptime() {
        return exptime;
    }

    public void setExptime(Integer exptime) {
        this.exptime = exptime;
    }

    public int getExptimeFlag() {
        return exptimeFlag;
    }

    public void setExptimeFlag(int exptimeFlag) {
        this.exptimeFlag = exptimeFlag;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Integer getTurnlink() {
        if(turnlink == null){
            turnlink = 0; //默认返利
        }
        return turnlink;
    }

    public void setTurnlink(Integer turnlink) {
        this.turnlink = turnlink;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
